package com.by.controller;

import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.service.SupplierService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author: Fsw
 * @com.by.controller
 * @date 2025-02-19 11:25
 */
@RestController
@Api(tags = "供应商管理")
@RequestMapping("/api/supplier")
public class SupplierController extends BaseController {

    @Autowired
    SupplierService supplierService;

    @ApiOperation(value = "查询")
    @GetMapping("/query")
    public ResultBean query (@RequestParam int id){
        List<Map> query = supplierService.query(id);
        return success("查询成功",query);
    }

}
